#ifndef PORT_CONFIG_H
#define PORT_CONFIG_H

typedef void(*Pv_func_t)(void*);

#define GPIO_PWM_CH0    (1)
#define GPIO_PWM_CH1    (2)

#define GPIO_I2C_CH0_SDA    (16)
#define GPIO_I2C_CH0_SCL    (17)
#define GPIO_I2C_CH1_SDA    (17)
#define GPIO_I2C_CH1_SCL    (5)

#define GPIO_EXIT_CH0   (16)
#define GPIO_EXIT_CH1   (17)

#define GPIO_MOTOR_LEFT_FORWARD  	(20) /* 电机1正传 */
#define GPIO_MOTOR_LEFT_REVERSE  	(21) /* 电机1反传 */     
#define GPIO_MOTOR_RIGHT_FORWARD  	(22) /* 电机2正传 */
#define GPIO_MOTOR_RIGHT_REVERSE  	(23) /* 电机2反传 */	
#define GPIO_SRF05_TRIGGER  	    (24) /* 超声波传感器 */	

#define GPIO_ENCODER_0_A         (25)
#define GPIO_ENCODER_0_B         (26)
#define GPIO_ENCODER_1_A        (27)
#define GPIO_ENCODER_1_B        (28)

#define MPU6050_I2C_PORT (0)
#define DISPALY_I2C_PORT (1)
#define MPU6050_EXIT_PORT (0)

#define MOTOR_LEFT_FORWARD_PORT      (0)
#define MOTOR_LEFT_REVERSE_PORT      (1)
#define MOTOR_RIGHT_FORWARD_PORT     (2)
#define MOTOR_RIGHT_REVERSE_PORT     (3)
#define SRF05_TRIGGER_PORT           (4)

#define MOTOR_LEFT_ENC_PORT (0)
#define MOTOR_RIGHT_ENC_PORT (1)

#endif /*PORT_CONFIG_H*/